<?php
class Profession extends AppModel {

	var $name = 'Profession';
	var $useDbConfig = 'ksmu';
	var $validate = array(
		'facultet_id' => array('numeric'),
		'name' => array('notempty'),
		'code' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Facultet' => array(
			'className' => 'Facultet',
			'foreignKey' => 'facultet_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Course' => array(
			'className' => 'Course',
			'foreignKey' => 'profession_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
	'Professionlearningperiod' => array(
				'className' => 'Professionlearningperiod',
				'foreignKey' => 'profession_id',
				'dependent' => false,
				'conditions' => '',
				'fields' => '',
				'order' => '',
				'limit' => '',
				'offset' => '',
				'exclusive' => '',
				'finderQuery' => '',
				'counterQuery' => ''
	)		
	);

}
?>